﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AspNetPager.aspx.cs" Inherits="ZLCMS.Web.Example.AspNetPager" %>

<!-- 页面头增加引用 -->
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    1.确保已经配置AspNetPager控件<br />
    配置方法：工具-> 选择工具箱-> .NET Framework组件-> 浏览并指向 AspNetPager.dll文件-> 添加完成<br />
    AspNetPager.dll文件位于 SVN:\zlcms\Reference\AspNetPager\ 下<br />
    2.需要从工具箱中拖出AspNetPager控件，或者在页面头增加引用<br />
    3.控件帮助文档：<a href="http://www.webdiyer.com/Controls/AspNetPager" target="_blank">http://www.webdiyer.com/Controls/AspNetPager</a>
    <br />
    <br />
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" UrlPaging="true" 
            PageIndexBoxType="TextBox"
            ShowPageIndexBox="Always" SubmitButtonText="GO" TextAfterPageIndexBox="页" 
            TextBeforePageIndexBox="转到" 
            CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页" 
            ShowCustomInfoSection="Left" PageSize="15">
        </webdiyer:AspNetPager>
    <br />
        
        当前索引值：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
        每页记录数：<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label><br />
        数据总数：<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
        所有要分页的记录需要的总页数：<asp:Label ID="Label6" runat="server" Text="Label"></asp:Label><br />
        当前页数据记录的起始索引：<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label><br />
        当前页最后一条记录的索引：<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label><br />
        
    </div>
    </form>
</body>
</html>
